<?php

namespace common\models\credit_public_tables;

use Yii;

/**
 * This is the model class for table "{{%sl_car_model_dycw0}}".
 *
 * @property int $id
 * @property int $brand_id
 * @property string $brand_name
 * @property int $car_mfrs_id
 * @property string $car_mfrs_iautos_name
 * @property int $car_series_id
 * @property int $car_series_mfrs_id
 * @property string $car_series_name
 * @property string $car_series_name_show
 * @property string $car_series_fullname
 * @property string $car_series_pinyin
 * @property string $car_series_pinyin_old
 * @property string $displacement
 * @property string $bsfs
 * @property string $year_list
 * @property string $model_year
 * @property int $model_id
 * @property string $model_model_id
 * @property string $model_name
 * @property string $model_transmission_id
 * @property string $model_transmission_name
 * @property string $model_displacement
 * @property string $model_new_price
 * @property string $model_title
 * @property string $model_emissions_name
 * @property int $model_is_turbo
 * @property string $model_show_title
 * @property string $model_brand_name
 * @property string $model_series_name
 * @property string $model_title_l
 * @property int $created_at
 * @property int $updated_at
 * @property int $status
 */
class SlCarModelDycw0 extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%sl_car_model_dycw0}}';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('db_public');
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['brand_id', 'brand_name', 'car_mfrs_id', 'car_mfrs_iautos_name', 'car_series_id', 'car_series_mfrs_id', 'car_series_name', 'car_series_name_show', 'car_series_fullname', 'car_series_pinyin', 'car_series_pinyin_old', 'model_year', 'model_id', 'model_model_id', 'model_displacement', 'model_new_price', 'model_title', 'model_is_turbo', 'model_brand_name', 'model_series_name', 'model_title_l', 'created_at', 'updated_at', 'status'], 'required'],
            [['brand_id', 'car_mfrs_id', 'car_series_id', 'car_series_mfrs_id', 'model_id', 'model_is_turbo', 'created_at', 'updated_at', 'status'], 'integer'],
            [['displacement', 'bsfs', 'year_list'], 'string'],
            [['model_new_price'], 'number'],
            [['brand_name', 'car_mfrs_iautos_name', 'car_series_name', 'car_series_name_show', 'car_series_fullname', 'car_series_pinyin', 'car_series_pinyin_old', 'model_title_l'], 'string', 'max' => 255],
            [['model_year', 'model_transmission_id', 'model_transmission_name', 'model_displacement'], 'string', 'max' => 20],
            [['model_model_id', 'model_name', 'model_title', 'model_show_title', 'model_brand_name', 'model_series_name'], 'string', 'max' => 200],
            [['model_emissions_name'], 'string', 'max' => 100],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'brand_id' => Yii::t('app', 'Brand ID'),
            'brand_name' => Yii::t('app', 'Brand Name'),
            'car_mfrs_id' => Yii::t('app', 'Car Mfrs ID'),
            'car_mfrs_iautos_name' => Yii::t('app', 'Car Mfrs Iautos Name'),
            'car_series_id' => Yii::t('app', 'Car Series ID'),
            'car_series_mfrs_id' => Yii::t('app', 'Car Series Mfrs ID'),
            'car_series_name' => Yii::t('app', 'Car Series Name'),
            'car_series_name_show' => Yii::t('app', 'Car Series Name Show'),
            'car_series_fullname' => Yii::t('app', 'Car Series Fullname'),
            'car_series_pinyin' => Yii::t('app', 'Car Series Pinyin'),
            'car_series_pinyin_old' => Yii::t('app', 'Car Series Pinyin Old'),
            'displacement' => Yii::t('app', 'Displacement'),
            'bsfs' => Yii::t('app', 'Bsfs'),
            'year_list' => Yii::t('app', 'Year List'),
            'model_year' => Yii::t('app', 'Model Year'),
            'model_id' => Yii::t('app', 'Model ID'),
            'model_model_id' => Yii::t('app', 'Model Model ID'),
            'model_name' => Yii::t('app', 'Model Name'),
            'model_transmission_id' => Yii::t('app', 'Model Transmission ID'),
            'model_transmission_name' => Yii::t('app', 'Model Transmission Name'),
            'model_displacement' => Yii::t('app', 'Model Displacement'),
            'model_new_price' => Yii::t('app', 'Model New Price'),
            'model_title' => Yii::t('app', 'Model Title'),
            'model_emissions_name' => Yii::t('app', 'Model Emissions Name'),
            'model_is_turbo' => Yii::t('app', 'Model Is Turbo'),
            'model_show_title' => Yii::t('app', 'Model Show Title'),
            'model_brand_name' => Yii::t('app', 'Model Brand Name'),
            'model_series_name' => Yii::t('app', 'Model Series Name'),
            'model_title_l' => Yii::t('app', 'Model Title L'),
            'created_at' => Yii::t('app', 'Created At'),
            'updated_at' => Yii::t('app', 'Updated At'),
            'status' => Yii::t('app', 'Status'),
        ];
    }
}
